package com.itany.thread.test03;

public class Test {
	public static void main(String[] args) {
		ProductPool pool = new ProductPool();
		Producer p1 = new Producer(pool, "生产者p1");
		Producer p2 = new Producer(pool, "生产者p2");
		Producer p3 = new Producer(pool, "生产者p3");
		Consumer c1 = new Consumer(pool, "消费者c1");
		Consumer c2 = new Consumer(pool, "消费者c2");
		
		p1.start();
		p2.start();
		p3.start();
		c1.start();
		c2.start();
		
	}
}
